﻿using System.Collections.Generic;

namespace Borg.Framework
{
    internal class QueuePlugsStartup : SlotStartup<QueuePlugsAttribute>
    {
        private static readonly Dictionary<SlotInfo, QueuePlugs> Data =
            new Dictionary<SlotInfo, QueuePlugs>();

        public override void Register(ExtensionTypeInfo extType)
        { }

        public override void SlotCreated(SlotInfo slot, QueuePlugsAttribute attr)
        {
            Data[slot] = new QueuePlugs(slot, attr);
        }

        public override void SlotReleased(SlotInfo slot, QueuePlugsAttribute attr)
        {
            Data.Remove(slot);
        }

        public override void Unregister(ExtensionTypeInfo extType)
        { }
    }
}

